package net.ibizsys.eclipse.studio.file;

/**
 * <后台视图控制器(JAVA)>用户文件创建对象
 * 
 * @author <a href='http://www.weibo.com/xjtoo' target='_blank'>Enmaai</a>
 */
public class ControllerFileBuilder extends SFFileBuilder
{
	@Override
	public String getFileType()
	{
		return "SF_CONTROLLER";
	}

	@Override
	protected void onInitDependPackage(StringBuilder builder)
	{	
		super.onInitDependPackage(builder);
		builder.append("import org.springframework.stereotype.Controller;\n");
		builder.append("\n");
	}

	@Override
	protected void onInitAnnotation(StringBuilder builder)
	{
		super.onInitAnnotation(builder);
			
		builder.append("@Controller\n");
	}

	@Override
	protected boolean hasException()
	{
		return true;
	}
}
